package com.xatu.yl.storeshopping.activity.Fragment;


import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.example.namespace.R;

public class ShopperMineFragment extends Fragment{
    private View root;
    private ImageView shop_icon;
    private TextView shop_name,shop_description;
    private LinearLayout order_control,order_finish,comment_control;
    private LinearLayout modify_shop,modify_pwd,sign_out_amount,exit;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        //如果不存在，则创建
        if(root == null){
            root = inflater.inflate(R.layout.shopper_mine_fragment, container, false);
        }
        //店铺图标
        shop_icon = root.findViewById(R.id.shop_icon);
        //店铺名称
        shop_name = root.findViewById(R.id.shop_name);
        //店铺描述
        shop_description = root.findViewById(R.id.shop_description);
        //订单管理
        order_control = root.findViewById(R.id.order_control);
        //订单完成
        order_finish = root.findViewById(R.id.order_finish);
        //评论管理
        comment_control = root.findViewById(R.id.comment_control);
        //修改店铺信息
        modify_shop = root.findViewById(R.id.modify_shop);
        //修改密码
        modify_pwd = root.findViewById(R.id.modify_pwd);
        //注销账户
        sign_out_amount = root.findViewById(R.id.sign_out_amount);
        //退出
        exit = root.findViewById(R.id.exit);

        return root;
    }
}


